using System.Collections;
using System.Collections.Generic;
using System.Net.Http.Headers;
using UnityEngine;

public class GetFeedClass : MonoBehaviour
{
    public GameObject player;
    float time = 0;
    // Update is called once per frame
    void Update()
    {
        time += Time.deltaTime;
        if(time>=5)
        {
            time = 0;
            for(int i=0;i<40;i++)
            {
                GameObject go = Instantiate(Resources.Load<GameObject>("Prefab/Feed"), GameObject.Find("Feed").transform);
                Vector2 pos = Random.insideUnitCircle * 60;
                go.transform.position = transform.position+new Vector3(pos.x,2,pos.y);
            }
        }
    }
}
